#ifndef PM_TAG_H_INCLUDED
#define PM_TAG_H_INCLUDED

#include "pm/dbobject.h"

namespace pm
{

class Tag : public db::Table
{
public:
	db::text   name;
	db::colour colour;
	
	static const wxString TABLE_NAME;

public:
	Tag() { }
	Tag(wxSQLite3ResultSet& res);
	
	// DB
	virtual db::update_value_t prepare_insert(wxSQLite3Database& db);
	virtual db::update_value_t prepare_update(wxSQLite3Database& db);
};

typedef std::list<Tag> ListTag;

} // namespace pm

#endif // PM_TAG_H_INCLUDED
